<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <% include("/app/resapi/style.html"){}%>
    <style type="text/css">
        #myTable tr td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 0px">
    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="widget-header bg-themeprimary">
                <span class="widget-caption">精华版块</span>
            </div>
            <div class="widget-body">
                <div class="js-alert">
                </div>
                <div class="buttons-preview" id="toobar">
                    <% if(so.hasPermission("discuss:insert")){ %>
                    <a class="btn btn-azure js-noticebtn">发布公告</a>
                    <% } %>
                </div>
                <table class="table table-striped table-hover table-bordered dataTable no-footer">
                    <thead>
                    <tr role="row">
                        <th>版块类型</th>
                        <th>版块名称</th>
                        <th>版主</th>
                        <th>发帖数</th>
                        <th>最后发帖</th>
                    </tr>
                    </thead>
                    <tbody id="disusslist">
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<div class="modal fade bs-example-modal-lg" id="noticeModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myLargeModalLabel">讨论区公告</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-bordered" role="form" id="form1">
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">通告标题：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="title" name="title" placeholder="通告标题">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">通告类型：</label>
                        <div class="col-sm-10">
                            <select class="form-control" id="noticeType" name="noticeType" style="border-radius: 0px;">
                                <option value="1">系统公告</option>
                                <option value="2">版主公告</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">通告内容：</label>
                        <div class="col-sm-10">
                            <textarea rows="4" class="form-control" id="remark" name="remark" placeholder="通告内容"></textarea>
                        </div>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('cancel')}</button>
                <button type="button" class="btn btn-primary js-save">${i18n('save')}</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>

<div class="modal fade bs-example-modal-lg" id="noticeReadModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myLargeModalLabel">讨论区公告</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-bordered" role="form" id="form1">
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">通告标题：</label>
                        <div class="col-sm-10" id="readTitle">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">通告类型：</label>
                        <div class="col-sm-10" id="readNoticeType">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">通告内容：</label>
                        <div class="col-sm-10" id="readRemark">
                        </div>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('system.close')}</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
</body>
<% include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript" src="/gobal/js/page/discuss/index.js"></script>
</html>
